<template>
  <div>
    <h1>Element使用</h1>
    <div>
      <el-button type="warning" :icon="Star" circle />
    </div>
    <el-switch
      v-model="value"
      class="mt-2"
      style="margin-left: 24px"
      inline-prompt
      :active-icon="Check"
      :inactive-icon="Close"
    />
    <br />
    <img v-if="value==true" src="https://picsum.photos/200" />
  </div>
</template>

<script>
import { Star, Check, Close } from "@element-plus/icons-vue";
export default {
  setup() {
    return {
      Star,
      Check,
      Close
    };
  },
  name: "Elementp",
  data() {
    return {
      value: true
    };
  },
  methods: {}
};
</script>

<style>
</style>